package org.advanced.extend;

/**
 * @author John.zhang
 * @version Id: ThreadSleep, v 1.0 2020/12/7 15:30 ZhiYong Exp $
 */
public class ThreadSleep extends Thread{

    @Override
    public void run() {
        System.out.println(System.currentTimeMillis());
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(System.currentTimeMillis());
    }

    public static void main(String[] args) {
        new ThreadSleep().start();
    }
}
